package com.bicon.botu.mall.component.common;


import com.bicon.botu.core.base.common.Constants;

/**
 * 轮播图常量
 *
 * @author 张凡
 * @date 2017/7/19 下午 14:49
 */
public interface BannerConstants extends Constants {
    /**
     * 轮播图数量超出
     */
    int RESPONSE_CODE_604 = 604;
    String RESPONSE_MESSAGE_604 = "轮播图数量超出";
    /**
     * 最后一张轮播图
     */
    int RESPONSE_CODE_605 = 605;
    String RESPONSE_MESSAGE_605 = "最后一张轮播图";

    /**
     * 响应类型
     */
    Integer URL = 1;//链接
    Integer GOODS = 2;//商品
    /**
     * 轮播图位置  1.商城首页
     */
    Integer MALLHOMEPAGE = 1;
    /**
     * 轮播图开关 :0.开，1.关
     */
    Integer BANNER_ON = 0;
    Integer BANNER_OFF = 1;
    /**
     * 缓存key
     */
    String REDIS_KEY = "botu:base:banner";
    /**
     * 定义轮播图模块
     */
    Integer MALL = 1;
    Integer HOSPITAL = 2;
    Integer ENCOURAGE = 3;
    /**
     * 缓存key模块
     */
    String MALL_MODULAR = "mall";
    String HOSPITAL_MODULAR = "hospital";
    String ENCOURAGE_MODULAR = "encourage";
    /**
     * 排序操作
     */
    String SORT_UP = "up";      //向上
    String SORT_DOWN = "down";  //向下
}
